export default {
  state: {
    stationId: undefined,
    labelId: undefined,
    employeeId: undefined,
    selectedGun: undefined,
    userScan: {
      gunName: undefined,
      receivableAmt: undefined,
      orderRandomId: undefined,
      orderOriginType: undefined,
    },
    stationPayPush:undefined
  },
  getters: {},
  mutations: {
    updateStationId(state, stationId) {
      state.stationId = stationId
    },
    updateSelectedGun(state, selectedGun) {
      state.selectedGun = selectedGun
    },
    updateLabelId(state, labelId) {
      state.labelId = labelId
    },
    clearLabelId(state) {
      state.labelId = undefined
    },
    updateEmployeeId(state, employeeId) {
      state.employeeId = employeeId
    },
    clearEmployeeId(state) {
      state.employeeId = undefined
    },
    updateUserScan(state, userScan) {
      state.userScan = userScan
    },
    updateStationPayPush(state, stationPayPush){
      state.stationPayPush = stationPayPush
    },
    clearUserScan(state) {
      state.userScan = {
        gunName: undefined,
        receivableAmt: undefined,
        orderRandomId: undefined,
        orderOriginType: undefined,
      }
    }
  },
  actions: {

  }
}
